package com.woniuxy.classdeans.service.impl;

import com.woniuxy.classdeans.mapper.StudentInfoMapper;
import com.woniuxy.classdeans.service.StudentInfoService;
import com.woniuxy.commons.entity.StudentInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wangyanhui
 * @date 2020/7/29 - 10:35
 */
@Service
public class StudentInfoServiceImpl implements StudentInfoService {
    @Autowired
    StudentInfoMapper studentInfoMapper;


    /**
     * 根据学生id获取学生
     * @param stuid  学生id
     * @return
     */
    @Override
    public StudentInfo getStudentInfoById(int stuid) {
        return studentInfoMapper.getStudentInfoById(stuid);
    }


    /**
     * 更改退学状态
     * @param stuid 学生id
     * @return
     */
    @Override
    public int updateIsQuit(int stuid) {
        return studentInfoMapper.updateIsQuit(stuid);
    }
}
